package com.xy.modular.shop.entity;

import com.xy.framework.base.entity.Entity;

/**
 * <p>
 * 商品图片表 product_img 一般是商品有多图展示 甚至视频 而我们也单独用一个表来展示这一块,
 * </p>
 *
 * @author BCK
 * @since 2019-10-12
 */
public class ProductImg extends Entity {

    private static final long serialVersionUID = 1L;

    /**
     *  	商品ID 	关联product表ID
     */
    private Integer productId;
    /**
     *  	图片路径 	建议采用路径存储url
     */
    private String img;
    /**
     *  	添加时间 	-
     */
    private Integer addTime;
    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }
    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }
    public Integer getAddTime() {
        return addTime;
    }

    public void setAddTime(Integer addTime) {
        this.addTime = addTime;
    }

    public static final String PRODUCT_ID = "shop_product_img.product_id";
    public static final String IMG = "shop_product_img.img";
    public static final String ADD_TIME = "shop_product_img.add_time";

    @Override
    public String toString() {
        return "ProductImg{" +
            "productId=" + productId +
            ", img=" + img +
            ", addTime=" + addTime +
        "}";
    }
}
